﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using Persistence;
using System.Data;

namespace BusinessLogic
{
    public class AdministratorBL
    {
        public static long addAdministrator(Administrator admin)
        {
            return AdministratorController.insertAdmin(admin);
        }
        public static void updateAdministrator(Administrator admin)
        {
            AdministratorController.updateAdministrator(admin);
        }
        public static void deleteAdministrator(long vId)
        {
            AdministratorController.deleteAdministrator(vId);
        }
        public static Administrator getAdministratorById(long vId)
        {
            return AdministratorController.getAdministratorById(vId);
        }
        public static DataTable getAdminListBySearch(string vSearch)
        {
            return AdministratorController.getAdminListBySearch(vSearch);
        }
    }
}
